package com.testMvc.testAop1;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class interAop<T> implements InvocationHandler {

    private T t;

    public interAop(T t) {
        this.t = t;
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println("befer");
        Object o = method.invoke(t, args);
        System.out.println("after");
        return o;
    }


}
